import request from '@/utils/request';
import { CORE_JAR_PREFIX } from '@/utils/constants';

export function getRealAlarmData({ h, pageNo, pageSize }) {
  return request('/tlss/' + CORE_JAR_PREFIX + '/AlarmSearch',
    { method: 'realAlarmData', h, pageNo, pageSize },
    'POST'
  );
}

export function getRealAlarmDetail({ ord, pageNo, pageSize }) {
  return request('/tlss/' + CORE_JAR_PREFIX + '/AlarmSearch',
    { method: 'realAlarmDetail', o: ord, pageNo, pageSize }
  );
}

export function ackAllAlarm(ord) {
  return request('/tlss/' + CORE_JAR_PREFIX + '/AlarmSearch',
    { method: 'ackAllAlarm', o: ord },
    'POST'
  );
}

export function ackEachAlarm(uuid) {
  return request('/tlss/' + CORE_JAR_PREFIX + '/AlarmSearch',
    { method: 'ackEachAlarm', u: uuid },
    'POST'
  );
}
